package com.yantong.pojo;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author kanghaixin
 */
public class MemberCart implements Serializable{

    private String specs;
    /**
     * 商品编码
     */
    private String productCode;
    /**
     * 商品标题
     */
    private String title;
    /**
     * 型号
     */
    private String  specTitle;

    /**
     * 商品图片
     */
    private String thumb;
    /**
     * 商品小图，正方形图片
     */
    private String thumbSquare;
    /**
     * 规格标题
     */
    private String skuTitle;
    
    /**
     * 站点id
     */
    private Long centreId;

    private BigDecimal consumptionIntegral;

    public BigDecimal getConsumptionIntegral() {
        return consumptionIntegral;
    }

    public void setConsumptionIntegral(BigDecimal consumptionIntegral) {
        this.consumptionIntegral = consumptionIntegral;
    }

    public Long getCentreId() {
		return centreId;
	}

	public void setCentreId(Long centreId) {
		this.centreId = centreId;
	}

	public String getSkuTitle() {
        return skuTitle;
    }

    public void setSkuTitle(String skuTitle) {
        this.skuTitle = skuTitle;
    }

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSpecTitle() {
        return specTitle;
    }

    public void setSpecTitle(String specTitle) {
        this.specTitle = specTitle;
    }

    public String getThumb() {
        return thumb;
    }

    public void setThumb(String thumb) {
        this.thumb = thumb;
    }

    public String getThumbSquare() {
        return thumbSquare;
    }

    public void setThumbSquare(String thumbSquare) {
        this.thumbSquare = thumbSquare;
    }

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_member_cart.id
     *
     * @mbggenerated Tue Sep 11 15:32:28 CST 2018
     */
    private Long id;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_member_cart.mid
     *
     * @mbggenerated Tue Sep 11 15:32:28 CST 2018
     */
    private Long mid;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_member_cart.teamid
     *
     * @mbggenerated Tue Sep 11 15:32:28 CST 2018
     */
    private Long teamid;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_member_cart.openid
     *
     * @mbggenerated Tue Sep 11 15:32:28 CST 2018
     */
    private String openid;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_member_cart.product_id
     *
     * @mbggenerated Tue Sep 11 15:32:28 CST 2018
     */
    @NotNull(message = "商品id不能为空")
    private Long productId;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_member_cart.sku_id
     *
     * @mbggenerated Tue Sep 11 15:32:28 CST 2018
     */
    private Long skuId;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_member_cart.total
     *
     * @mbggenerated Tue Sep 11 15:32:28 CST 2018
     */
    @Min(value = 1,message = "不能小于1")
    private Integer total;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_member_cart.marketprice
     *
     * @mbggenerated Tue Sep 11 15:32:28 CST 2018
     */
    private BigDecimal marketprice;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_member_cart.deleted
     *
     * @mbggenerated Tue Sep 11 15:32:28 CST 2018
     */
    private Integer deleted;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_member_cart.create_time
     *
     * @mbggenerated Tue Sep 11 15:32:28 CST 2018
     */
    private Date createTime;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_member_cart.update_time
     *
     * @mbggenerated Tue Sep 11 15:32:28 CST 2018
     */
    private Date updateTime;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_member_cart.isorder
     *
     * @mbggenerated Tue Sep 11 15:32:28 CST 2018
     */
    private Integer isorder;

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_member_cart.id
     *
     * @return the value of t_member_cart.id
     *
     * @mbggenerated Tue Sep 11 15:32:28 CST 2018
     */
    public Long getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_member_cart.id
     *
     * @param id the value for t_member_cart.id
     *
     * @mbggenerated Tue Sep 11 15:32:28 CST 2018
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_member_cart.mid
     *
     * @return the value of t_member_cart.mid
     *
     * @mbggenerated Tue Sep 11 15:32:28 CST 2018
     */
    public Long getMid() {
        return mid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_member_cart.mid
     *
     * @param mid the value for t_member_cart.mid
     *
     * @mbggenerated Tue Sep 11 15:32:28 CST 2018
     */
    public void setMid(Long mid) {
        this.mid = mid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_member_cart.teamid
     *
     * @return the value of t_member_cart.teamid
     *
     * @mbggenerated Tue Sep 11 15:32:28 CST 2018
     */
    public Long getTeamid() {
        return teamid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_member_cart.teamid
     *
     * @param teamid the value for t_member_cart.teamid
     *
     * @mbggenerated Tue Sep 11 15:32:28 CST 2018
     */
    public void setTeamid(Long teamid) {
        this.teamid = teamid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_member_cart.openid
     *
     * @return the value of t_member_cart.openid
     *
     * @mbggenerated Tue Sep 11 15:32:28 CST 2018
     */
    public String getOpenid() {
        return openid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_member_cart.openid
     *
     * @param openid the value for t_member_cart.openid
     *
     * @mbggenerated Tue Sep 11 15:32:28 CST 2018
     */
    public void setOpenid(String openid) {
        this.openid = openid == null ? null : openid.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_member_cart.product_id
     *
     * @return the value of t_member_cart.product_id
     *
     * @mbggenerated Tue Sep 11 15:32:28 CST 2018
     */
    public Long getProductId() {
        return productId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_member_cart.product_id
     *
     * @param productId the value for t_member_cart.product_id
     *
     * @mbggenerated Tue Sep 11 15:32:28 CST 2018
     */
    public void setProductId(Long productId) {
        this.productId = productId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_member_cart.sku_id
     *
     * @return the value of t_member_cart.sku_id
     *
     * @mbggenerated Tue Sep 11 15:32:28 CST 2018
     */
    public Long getSkuId() {
        return skuId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_member_cart.sku_id
     *
     * @param skuId the value for t_member_cart.sku_id
     *
     * @mbggenerated Tue Sep 11 15:32:28 CST 2018
     */
    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_member_cart.total
     *
     * @return the value of t_member_cart.total
     *
     * @mbggenerated Tue Sep 11 15:32:28 CST 2018
     */
    public Integer getTotal() {
        return total;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_member_cart.total
     *
     * @param total the value for t_member_cart.total
     *
     * @mbggenerated Tue Sep 11 15:32:28 CST 2018
     */
    public void setTotal(Integer total) {
        this.total = total;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_member_cart.marketprice
     *
     * @return the value of t_member_cart.marketprice
     *
     * @mbggenerated Tue Sep 11 15:32:28 CST 2018
     */
    public BigDecimal getMarketprice() {
        return marketprice;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_member_cart.marketprice
     *
     * @param marketprice the value for t_member_cart.marketprice
     *
     * @mbggenerated Tue Sep 11 15:32:28 CST 2018
     */
    public void setMarketprice(BigDecimal marketprice) {
        this.marketprice = marketprice;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_member_cart.deleted
     *
     * @return the value of t_member_cart.deleted
     *
     * @mbggenerated Tue Sep 11 15:32:28 CST 2018
     */
    public Integer getDeleted() {
        return deleted;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_member_cart.deleted
     *
     * @param deleted the value for t_member_cart.deleted
     *
     * @mbggenerated Tue Sep 11 15:32:28 CST 2018
     */
    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_member_cart.create_time
     *
     * @return the value of t_member_cart.create_time
     *
     * @mbggenerated Tue Sep 11 15:32:28 CST 2018
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_member_cart.create_time
     *
     * @param createTime the value for t_member_cart.create_time
     *
     * @mbggenerated Tue Sep 11 15:32:28 CST 2018
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_member_cart.update_time
     *
     * @return the value of t_member_cart.update_time
     *
     * @mbggenerated Tue Sep 11 15:32:28 CST 2018
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_member_cart.update_time
     *
     * @param updateTime the value for t_member_cart.update_time
     *
     * @mbggenerated Tue Sep 11 15:32:28 CST 2018
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_member_cart.isorder
     *
     * @return the value of t_member_cart.isorder
     *
     * @mbggenerated Tue Sep 11 15:32:28 CST 2018
     */
    public Integer getIsorder() {
        return isorder;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_member_cart.isorder
     *
     * @param isorder the value for t_member_cart.isorder
     *
     * @mbggenerated Tue Sep 11 15:32:28 CST 2018
     */
    public void setIsorder(Integer isorder) {
        this.isorder = isorder;
    }

    public String getSpecs() {
        return specs;
    }

    public void setSpecs(String specs) {
        this.specs = specs;
    }
}